<template>
    <div class="container">
         <loading :show="show1" :text="text1"></loading>
    </div>
</template>
<script>
import {Loading} from 'vux'
import { mapState } from "vuex";
export default {
    data () {
      return {
        show1: true,
        text1:'Loading'
      }
    },
    destroyed() {
      this.show1=false
    },
    created(){
      this.$store.commit('LOGIN',this.$route.query.userId);
      // this.$router.push({ path:this.$route.query.path})
      let str = this.$route.query.path
      let s = str.substr(0,1)
      let path;
      if(s=='/') {
        path = str.substr(1)
      }
      window.location.href = "http://www.chenyekeji.com/cy_market_web/#/"+path
    },
    mounted(){
      
    },
    components: {
       Loading
     },
}
</script>
<style scoped>
 .container{
     height: 100%;
     width:100%;
 }
</style>

